package com.aliyun.order.server.dao.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 订单明细
 *
 * 
 * @date 2024/11/26
 */
@Data
@TableName("tech_solution_order_item")
public class OrderItemDO implements Serializable {

    private static final long serialVersionUID = -6051300766978636502L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * 用户 ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 金额
     */
    @TableField("amount")
    private Long amount;

    /**
     * 订单 ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 商品 ID
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
}